#include <reg51.h>
#include "24c02.h"
#include "delay.h"

void main() 
{
	unsigned char buf[8] = { 0,1,2,3,4,5,6,7 };
	char i = 0;
	eeprom_write_page(0x00, buf);
  //eeprom_write_data(0x00, 0x11); 
	for(;; ++i) {
		P0 = eeprom_read_data(i%8);
		delay(59999);
	}
}